/**
 * Created by baidm in 2022/8/9 on 11:28
 */
const {override, addWebpackAlias, fixBabelImports, addLessLoader} = require("customize-cra")
const path = require("path");

module.exports = override(
    // 路径别名
    addWebpackAlias({
      "@": path.resolve(__dirname, "src")
    }),
    // ant 样式按需引入
    fixBabelImports("import", {
      libraryName: "antd",
      libraryDirectory: "es",
      style: true
    }),
    // 修改主题,todo:报错
    // addLessLoader({
    //   lessOptions: {
    //     javascriptEnabled: true, // 允许js修改loader
    //     modifyVars: {
    //       "@primary-color": "#1DA57A"
    //     }
    //   }
    // })
)
